package cn.java76.springboot.demo1.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
//发短信
@Component//
@Data//改源代码：class,Runtime,Source
//set get toString ,equals,hashCode
@ConfigurationProperties(prefix = "tongzhi")
public class Sms {
    private String isp;//运营商
    private String phoneNumber;
    private String content;

    private String [] to=new String[0];//发给谁
    //
    private List<String> datas=new ArrayList<>();

    private  Map<String,String> renshu=new HashMap<>();
    @Override
    public String toString() {
        return "Sms{" +
                "isp='" + isp + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", content='" + content + '\'' +
                ", to=" + Arrays.toString(to) +
                ",datas="+datas+
                ",人数="+renshu+
                '}';
    }
}
